﻿@model BTKERP.Model.GRNMaster

@{
    ViewBag.Title = "Create";
}

<h2>Create</h2>

<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>

@using (Html.BeginForm()) {
    @Html.ValidationSummary(true)
    <fieldset>
        <legend>GRNMaster</legend>

        <div class="editor-field">
            <b>Code : </b>@Html.EditorFor(model => model.GRNCode)
            @Html.ValidationMessageFor(model => model.GRNCode)
        </div>
        <br />
        <div class="editor-field">
            <b>Date : </b>@Html.DisplayFor(model => model.GRNDate)
        </div>
        <br />
        <div class="editor-field">
            <b>Supplier : </b>@Html.DropDownListFor(model => model.SupplierId, (SelectList)ViewData["SupplierList"])
            @Html.ValidationMessageFor(model => model.SupplierId)
        </div>
        <br />
        <div class="editor-field">
            <b>Reveiced Warehouse : </b>@Html.DropDownListFor(model => model.ReceivedWarehouseId, (SelectList)ViewData["WarehouseList"])
            @Html.ValidationMessageFor(model => model.ReceivedWarehouseId)
        </div>
        <br />
        <div class="editor-field">
            <b>Remark : </b>@Html.EditorFor(model => model.Remark)
            @Html.ValidationMessageFor(model => model.Remark)
        </div>
        <br />
        <p>
            <input type="submit" value="Save"  class="btn btn-green"/>
        </p>
    </fieldset>
}

<div>
    @Html.ActionLink("Back to List", "Index")
</div>
